package com.matt.domain.care;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 餐食记录
 */
@Entity
@Data
@Table(name = "hl_sleeping_record")
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
public class HLSleepRecord extends HLCareBaseRecord {

    @Column(columnDefinition = " datetime COMMENT '入睡时间'")
    private Date sleepTime;

    @Column(columnDefinition = " datetime COMMENT '苏醒时间'")
    private Date wakeupTime;

    @Column(columnDefinition = " varchar(30) COMMENT '时长'")
    private String duration;

    @Column(columnDefinition = " int  COMMENT '睡眠状态评分'")
    private Integer rankVal;

    @Column(columnDefinition = " varchar(255)   COMMENT '备注'")
    private String remark;
}
